package org.artifact.core.constant;

import cn.hutool.core.lang.Console;
import cn.hutool.core.net.NetUtil;
import cn.hutool.http.HttpUtil;

/**
 * 服务器属性常量
 */
public class ArtifactAttrConstant {
    /**
     * 本地IP
     */
    public static final String LOCAL_IP = "localIp";

    /**
     * 远程IP
     */
    public static final String REMOTE_IP = "remoteIp";

    /**
     * 服务器ID
     */
    public static final String SERVER_ID = "serverId";

    /**
     * 服务器名称
     */
    public static final String SERVER_NAME = "serverName";

    /**
     * 启动时间
     */
    public static final String START_DATE = "startDate";

    /**
     * 最后存储时间
     */
    public static final String LAST_STORAGE_DATE = "lastStorageDate";

    /**
     * 开发者模式
     */
    public static final String DEBUG = "debug";

    /**
     * 开发者模式
     */
    public static final String ROOT_PACKAGE = "rootPackage";


    public static void main(String[] args) {
        Console.log(NetUtil.getLocalhost().getHostAddress());
        Console.log(HttpUtil.get("http://icanhazip.com/").trim());
    }
}
